import {createApp} from 'vue';
import Loading from '@/components/Loading.vue';
import vuertifyPlugin from '@/plugins/vuetify';

let loading:any;
function showLoading(){
  loading?.unmount();
  loading=createApp(Loading,{
    modelValue:true
  });
  loading.use(vuertifyPlugin).mount('#loading');
}
function hideLoading(){
  loading?.unmount();
}

export {
  showLoading,hideLoading
}